<template>
	<view class="container">
	  <view class="header">
	    <view class="back-icon"></view>
	    <view class="title"></view>
	    <view class="more-icon">
	      <icon type="more" size="20"></icon>
	    </view>
	  </view>
	  <view class="balance-container">
	    <view class="balance-box">
	      <view class="balance-text">总资产(元)</view>
	      <view class="balance-num" v-for="(item,index) in collectionList ":key=index>{{item.price}}</view>
	      <view class="account-text">| 账户</view>
	    </view>
	  </view>
	  <view class="function-buttons">
	    <view class="button-item">
	      <view class="icon" @click="change1">
	        <image src="../../../static/images/banner/充值.png"></image>
	      </view>
	      <view class="text" >充值</view>
	    </view>
	    <view class="button-item">
	      <view class="icon" @click="change2">
	        <image src="../../../static/images/banner/提现.png"></image>
	      </view>
	      <view class="text">提现</view>
	    </view>
	  </view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				collectionList:[
					{
			
						price:'￥69.9'
					},
				]
			}
		},
		methods: {
			change1(){
						uni.navigateTo({
							url:"/pages/mine/qianbao/cz"
						})
			},
			change2(){
						uni.navigateTo({
							url:"/pages/mine/qianbao/tx"
						})
			},
		}
	}
</script>

<style>
.container {
  background-color: white;
  padding: 20px;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.back-icon {
  font-size: 20px;
  color: #333;
}
.title {
  font-size: 18px;
  font-weight: bold;
}
.more-icon {
  display: flex;
  justify-content: center;
  align-items: center;
}
.balance-container {
  background: linear-gradient(180deg, #48d05f, #86e8a3);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  height: 350rpx;
}
.balance-box {
  color: white;
}
.balance-text {
  font-size: 14px;
  margin-bottom: 5px;
}
.balance-num {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}
.account-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.function-buttons {
  display: flex;
  justify-content: space-between;
}
.button-item {
  width: 48%;
   background: linear-gradient(180deg, #3fb553, #86e8a3);
  border-radius: 10px;
  padding: 20px;
  height:175rpx;
  display: flex;
  margin-top: 50rpx;
  flex-direction: column;
  align-items: center;
}
.icon image {
  width: 40px;
  height: 40px;
}
.text {
  font-size: 14px;
 margin-top: 10rpx;
  color: #ffffff;
}
</style>
